var TicTacToeBoard = function()
{
    this.position = ["-", "-", "-", "-", "-", "-", "-", "-", "-"];
    this.devIndWidth = 3;
    this.devIndheight = 3;
}

TicTacToeBoard.prototype.isLocationOccupied = function(aPosition)
{
    var isOccupied = ( this.position[aPosition] === "-" );
    return isOccupied;
}

TicTacToeBoard.prototype.getPieceByLocation = function(aPosition)
{
    return this.position[aPosition];
}

TicTacToeBoard.prototype.makeMove = function(aPosition, piece)
{
    // Player player = move.getPlayer();
    // Piece piece = new TicTacToePiece();
    // Location location = move.getLocation();
    // piece.setType(player.getType());
    // piece.setLocation(location);
    this.position[aPosition - 1] = piece;
    // mLocationByPiece.put(piece, location);
}



/*
    protected HashMap<Location, Piece> mPieceByLocation = null;
    protected HashMap<Piece, Location> mLocationByPiece = null;

    public void initialize()
    {
        mPieceByLocation = new HashMap<Location, Piece>(getWidth()*getHeight());
        mLocationByPiece = new HashMap<Piece, Location>(getWidth()*getHeight());
    }

    public void reInitialize(HashMap<Location, Piece> pieceByLocation)
    {
        mPieceByLocation = pieceByLocation;
        // TODO: Need to rebuild mLocationByPiece = locationByPiece;
    }

    public void makeMove(Move move)
    {
        Player player = move.getPlayer();
        Piece piece = new TicTacToePiece();
        Location location = move.getLocation();
        piece.setType(player.getType());
        piece.setLocation(location);
        mPieceByLocation.put(location, piece);
        mLocationByPiece.put(piece, location);
    }

    public void undoMove(Move move)
    {
        Player player = move.getPlayer();
        Piece piece = new TicTacToePiece();
        Location location = move.getLocation();
        piece.setType(player.getType());
        piece.setLocation(location);
        mPieceByLocation.put(location, null);
        mLocationByPiece.put(piece, null);
    }

    public Location getLocationByPiece(Piece piece)
    {
        return mLocationByPiece.get(piece);
    }

 */